package com.cate.mapper;

import com.cate.pojo.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     *
     * @param orderDetailList
     * @return
     */
    int insertBatch(List<OrderDetail> orderDetailList);

    /**
     * 通过订单Id查询订单item
     * @return
     */
    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetail> getByOrderId(Long orderId);
}
